public class cat {
    private String name;
    private static int age = 12;
    private static float weight = 21.0f;
    private String color;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void toString(String name, String color){
        System.out.println("猫咪1号：姓名："+name);
        System.out.println("年龄："+age);
        System.out.println("重量："+weight);
        System.out.println("颜色："+color);
    }

    @Override
    public String toString() {
        return super.toString();
    }

    public static void main(String[] args) {
        cat c1 = new cat();
        c1.setName("mimi");
        c1.setColor("red");
        c1.toString(c1.name, c1.color);
    }
}
